package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：flyway_schema_history
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "flyway_schema_history")
public class FlywaySchemaHistory implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "installed_rank", nullable = false)
    private Integer installedRank;
    
    /**
     * 
     */
    @Column(name = "version", length = 50)
    private String version;
    
    /**
     * 
     */
    @Column(name = "description", nullable = false, length = 200)
    private String description;
    
    /**
     * 
     */
    @Column(name = "type", nullable = false, length = 20)
    private String type;
    
    /**
     * 
     */
    @Column(name = "script", nullable = false, length = 1000)
    private String script;
    
    /**
     * 
     */
    @Column(name = "checksum")
    private Integer checksum;
    
    /**
     * 
     */
    @Column(name = "installed_by", nullable = false, length = 100)
    private String installedBy;
    
    /**
     * 
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "installed_on", nullable = false)
    private java.time.LocalDateTime installedOn;
    
    /**
     * 
     */
    @Column(name = "execution_time", nullable = false)
    private Integer executionTime;
    
    /**
     * 
     */
    @Column(name = "success", nullable = false)
    private Boolean success;
    
    @Override
    public String toString() {
        return "FlywaySchemaHistory{" +
            "installedRank=" + installedRank +
            ", version=" + version +
            ", description=" + description +
            ", type=" + type +
            ", script=" + script +
            ", checksum=" + checksum +
            ", installedBy=" + installedBy +
            ", installedOn=" + installedOn +
            ", executionTime=" + executionTime +
            ", success=" + success +
        '}';
    }
} 